package com.demo.dao;

import com.demo.entity.LadingOrder;

import java.util.List;

public interface LadingOrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(LadingOrder record);

    int insertSelective(LadingOrder record);

    LadingOrder selectByPrimaryKey(Integer id);

    /**
     * @param ladingId 提单ID
     * @return
     */
    List<LadingOrder> selectByLadingId(String ladingId);

    int updateByPrimaryKeySelective(LadingOrder record);

    int updateByPrimaryKey(LadingOrder record);

    /**
     * 批量增加
     *
     * @param list
     * @return
     */
    int addBatch(List<LadingOrder> list);

}